package com.devinsor.spring.framework.webmvc.servlet;

import java.util.Map;

/**
 * @program: com.devinsor
 * @description:
 * @author: JackRen
 * @create: 2020-05-14 11:19
 **/
public class ModelAndView {

    private String viewName;
    private Map<String,?> model;

    public ModelAndView(String viewName) {
        this.viewName = viewName;
    }

    public ModelAndView(String viewName, Map<String, Object> model) {
        this.viewName = viewName;
        this.model = model;
    }

    public String getViewName() {
        return  viewName;
    }

    public Map<String, ?> getModel() {
        return model;
    }
}
